package org.cangku.dao;

import org.apache.ibatis.annotations.Param;
import org.cangku.entity.Brand;

import java.util.List;

public interface BrandDao {
    public List<Brand> query();

    public List<Brand> queryTJ(@Param("offset") int offset,@Param("limit") int limit,@Param("bid") int bid);
    public int getTJ();
    //增加品牌
    public boolean addBrand(Brand brand);
    //修改品牌
    public boolean editBrand(Brand brand);
    //删除品牌
    public boolean deletebyid(@Param("bid") int bid);
    //根据id查信息
    public List<Brand> selectById(@Param("bid") int bid);
}
